import App from './App'

// #ifndef VUE3
import Vue from 'vue'
// 引入vuview组件库
import uView from 'uni_modules/uview-ui'
Vue.use(uView)

import MyComp from 'components/test-my-comp';
Vue.component('test-my-comp',MyComp)

import NavCustom from 'components/nav-custom'
Vue.component('nav-custom',NavCustom)

import HomeTitle from'components/home-title';
Vue.component('home-title',HomeTitle)

import GoodItem from'components/good-item';
Vue.component('good-item',GoodItem)

// 挂在全局异步请i求方法
// import {$http,$get,$post} from 'utils/request.js'
// Vue.prototype.$http = $http
// Vue.prototype.$get = $get
// Vue.prototype.$post = $post

import * as demo from 'utils/request.js'

for(let key in demo){
	Vue.prototype[key] = demo[key]
}




// 如此配置即可
uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import request from 'request';
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif